PUTS

Section: Standard I/O Functions (3S)
Updated: May 15, 1985
Index Return to Main Contents
 

NAME

puts, fputs - put a string on a stream  

SYNOPSIS

#include <stdio.h>

puts(s)
char *s;

fputs(s, stream)
char *s;
FILE *stream;  

DESCRIPTION

Puts copies the null-terminated string s to the standard output stream stdout and appends a newline character.

Fputs copies the null-terminated string s to the named output stream.

Neither routine copies the terminal null character.  

SEE ALSO

fopen(3S), gets(3S), putc(3S), printf(3S), ferror(3S)
fread(3S) for fwrite  

BUGS

Puts appends a newline, fputs does not, all in the name of backward compatibility.


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
BUGS

This document was created by man2html, using the manual pages.
Time: 04:51:46 GMT, January 31, 2023